﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SendPower.aspx.cs" Inherits="jnxcLogin.SendPower" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1 {
            width: 100%;
            text-align: center;
        }

        .auto-style1 {
            height: 18px;
        }

        </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table class="style1">
                <tr>
                    <td style="height: 18px;" colspan="2"><strong>授权用户</strong></td>

                </tr>
                <tr>
                    <td style="text-align: left; height: 18px;" colspan="2">当前授权用户：<asp:Label ID="lbl_userName" runat="server"></asp:Label>
                        <asp:Label ID="lbl_user_id" runat="server"></asp:Label>
                        ，授权系统：<asp:DropDownList ID="ddl_sysName" runat="server">
                            <asp:ListItem Value="-1">---请选择---</asp:ListItem>
                            <asp:ListItem>防治系统</asp:ListItem>
                            <asp:ListItem>测报系统</asp:ListItem>
                            <asp:ListItem>检疫系统</asp:ListItem>
                            <asp:ListItem>考试系统</asp:ListItem>
                            <asp:ListItem>设备监测</asp:ListItem>
                        </asp:DropDownList>
                    &nbsp; 用户名（可模糊查找）：<asp:TextBox ID="txt_trueName" runat="server"></asp:TextBox>
&nbsp;登录帐号：<asp:TextBox ID="txt_loginName" runat="server"></asp:TextBox>
&nbsp;<asp:Button ID="btn_sel" runat="server" OnClick="btn_sel_Click" Text="查找" />
                    </td>

                </tr>
                <tr>
                    <td style="text-align: left; " colspan="2" class="auto-style1">
                        <asp:Label ID="lbl_notice" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                    </td>

                </tr>
                <tr>
                    <td style="text-align: left; height: 18px;" colspan="2">&nbsp;</td>

                </tr>
                <tr>
                    <td style="text-align: center; height: 18px;" colspan="2">
                        <asp:GridView ID="gv_sysFZ" runat="server" Width="100%" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" Visible="False" OnRowCommand="gv_sysFZ_RowCommand">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:TemplateField HeaderText="防治系统操作">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbn_sq" runat="server" CommandArgument='<%# Bind("uid") %>' CommandName="lbn_sq">授权</asp:LinkButton>
                                        &nbsp;
                                        <asp:LinkButton ID="lbn_qsq" runat="server" CommandArgument='<%# Bind("uid") %>' CommandName="lbn_qsq">取消授权</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="uname" HeaderText="登录帐号" />
                                <asp:BoundField DataField="utruename" HeaderText="用户名" />
                                <asp:BoundField DataField="uunit" HeaderText="工作单位" />
                            </Columns>
                            <FooterStyle BackColor="#CCCC99" />
                            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" Height="20px" />
                            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                            <RowStyle BackColor="#F7F7DE" Height="20px" />
                            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#FBFBF2" />
                            <SortedAscendingHeaderStyle BackColor="#848384" />
                            <SortedDescendingCellStyle BackColor="#EAEAD3" />
                            <SortedDescendingHeaderStyle BackColor="#575357" />
                        </asp:GridView>
                        <asp:GridView ID="gv_sysCB" runat="server" Width="100%" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" Visible="False" OnRowCommand="gv_sysCB_RowCommand">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:TemplateField HeaderText="测报系统操作">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbn_sqCB" runat="server" CommandArgument='<%# Bind("uid") %>' CommandName="lbn_sq">授权</asp:LinkButton>
                                        &nbsp;
                                        <asp:LinkButton ID="lbn_qsqCB" runat="server" CommandArgument='<%# Bind("uid") %>' CommandName="lbn_qsq">取消授权</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="uname" HeaderText="登录帐号" />
                                <asp:BoundField DataField="utruename" HeaderText="用户名" />
                                <asp:BoundField DataField="uunit" HeaderText="工作单位" />
                            </Columns>
                            <FooterStyle BackColor="#CCCC99" />
                            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" Height="20px" />
                            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                            <RowStyle BackColor="#F7F7DE" Height="20px" />
                            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#FBFBF2" />
                            <SortedAscendingHeaderStyle BackColor="#848384" />
                            <SortedDescendingCellStyle BackColor="#EAEAD3" />
                            <SortedDescendingHeaderStyle BackColor="#575357" />
                        </asp:GridView>
                        <asp:GridView ID="gv_sysJY" runat="server" Width="100%" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" Visible="False">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:TemplateField HeaderText="检疫系统操作">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbn_sq1" runat="server" CommandArgument='<%# Bind("uid") %>' CommandName="lbn_sq">授权</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="uname" HeaderText="登录帐号" />
                                <asp:BoundField DataField="utruename" HeaderText="用户名" />
                                <asp:BoundField DataField="uunit" HeaderText="工作单位" />
                            </Columns>
                            <FooterStyle BackColor="#CCCC99" />
                            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" Height="20px" />
                            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                            <RowStyle BackColor="#F7F7DE" Height="20px" />
                            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#FBFBF2" />
                            <SortedAscendingHeaderStyle BackColor="#848384" />
                            <SortedDescendingCellStyle BackColor="#EAEAD3" />
                            <SortedDescendingHeaderStyle BackColor="#575357" />
                        </asp:GridView>
                        <asp:GridView ID="gv_sysKS" runat="server" Width="100%" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" Visible="False">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:TemplateField HeaderText="考试系统操作">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbn_sq2" runat="server" CommandArgument='<%# Bind("uid") %>' CommandName="lbn_sq">授权</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="uname" HeaderText="登录帐号" />
                                <asp:BoundField DataField="utruename" HeaderText="用户名" />
                                <asp:BoundField DataField="uunit" HeaderText="工作单位" />
                            </Columns>
                            <FooterStyle BackColor="#CCCC99" />
                            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" Height="20px" />
                            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                            <RowStyle BackColor="#F7F7DE" Height="20px" />
                            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#FBFBF2" />
                            <SortedAscendingHeaderStyle BackColor="#848384" />
                            <SortedDescendingCellStyle BackColor="#EAEAD3" />
                            <SortedDescendingHeaderStyle BackColor="#575357" />
                        </asp:GridView>
                        <asp:GridView ID="gv_sysSB" runat="server" Width="100%" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" Visible="False" OnRowCommand="gv_sysSB_RowCommand">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:TemplateField HeaderText="设备监测操作">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbn_sqSB" runat="server" CommandArgument='<%# Bind("KeyId") %>' CommandName="lbn_sq">授权</asp:LinkButton>
                                        &nbsp;
                                        <asp:LinkButton ID="lbn_qsqSB" runat="server" CommandArgument='<%# Bind("KeyId") %>' CommandName="lbn_qsq">取消授权</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="UserName" HeaderText="登录帐号" />
                                <asp:BoundField DataField="TrueName" HeaderText="用户名" />
                                <asp:BoundField DataField="uadd" HeaderText="地址" />
                            </Columns>
                            <FooterStyle BackColor="#CCCC99" />
                            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" Height="20px" />
                            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                            <RowStyle BackColor="#F7F7DE" Height="20px" />
                            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#FBFBF2" />
                            <SortedAscendingHeaderStyle BackColor="#848384" />
                            <SortedDescendingCellStyle BackColor="#EAEAD3" />
                            <SortedDescendingHeaderStyle BackColor="#575357" />
                        </asp:GridView>
                    </td>

                </tr>
                <tr>
                    <td style="text-align: right; width: 120px; height: 18px;">&nbsp;</td>
                    <td style="text-align: left;">&nbsp;</td>

                </tr>
                <tr>
                    <td style="text-align: right; width: 120px; height: 18px;">&nbsp;</td>
                    <td style="text-align: left;">&nbsp;</td>

                </tr>
            </table>
        </div>
    </form>
</body>
</html>
